<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title>Help for Ostermiller Basic and Scientific Calculator</title>
</head>
<body>
<h1>Help for Ostermiller Basic and Scientific Calculator</h1>
<img alt="Ostermiller Basic and Scientific Calculator"
 title="Ostermiller Basic and Scientific Calculator" src="ocalc.jpg"
 width="280" align="right" height="210">This is a Help page for the <a
 href="http://www.dapj.com/gadgets/calculator">Ostermiller Basic and
Scientific Calculator</a> Gadget, I have added a Gadget and GUI
Elements Skin for the calculator made by Stephen Ostermiller of <a
 href="http://ostermiller.org/">ostermiller.org</a>. <br>
<br>
Gadget Description - "Scientific Expression or Formula Calculations.
Twenty Transaction Memory and Tape, Different bases like Decimal and
Octal, Logic Math, Functions, Constants"<br>
<br>
Enter an expression into the formula bar and press enter to calculate
the results..All results are calculated using the Javascript eval()
function.
Syntax for expressions
is the same as that for Javascript.
<p><b>This calculator can handle input numbers in several different
bases:</b></p>
<ul>
  <li>Decimal Base 10 - Numbers that do not start with a zero like 15
or 3.14e15.
Decimal numbers can contain digits 0-9, decimals, and scientific
notation.</li>
  <li>Hexadecimal Base 16 - Integers that start with a zero x like
0x1a5. Hexadecimal numbers
can contain digits 0-9 and a-f (or A-F) but no decimal or scientific
notation.</li>
  <li>Octal Base 8 - Integers that start with a zero like 073. Octal
numbers
can contain digits 0-7 but no decimal or scientific notation.</li>
  <li>Binary Base 2 - Integers that start with a zero b like 0b101.
Binary numbers
can contain digits 0 and 1 but no decimal or scientific notation.</li>
</ul>
<p>^ is a bitwise xor operation. To raise a number to a power use pow()
function.</p>
<h2>Keyboard shortcuts in conjunction with Alt or Cmd Key.</h2>
<br>
<table bgcolor="#dde2e5" border="0" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td bgcolor="#fcfcfc">Clear</td>
      <td valign="top" bgcolor="#fcfcfc"><b>C<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Equals</td>
      <td valign="top" bgcolor="#fcfcfc"><b>E<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">History (previous)</td>
      <td valign="top" bgcolor="#fcfcfc"><b>H<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Display (cycle)</td>
      <td valign="top" bgcolor="#fcfcfc"><b>D<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Decimal mixed display</td>
      <td valign="top" bgcolor="#fcfcfc"><b>M<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Decimal Scientific display</td>
      <td valign="top" bgcolor="#fcfcfc"><b>S<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Decimal Engineering display</td>
      <td valign="top" bgcolor="#fcfcfc"><b>G<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Binary display</td>
      <td valign="top" bgcolor="#fcfcfc"><b>B<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Octal display</td>
      <td valign="top" bgcolor="#fcfcfc"><b>O<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Hex display</td>
      <td valign="top" bgcolor="#fcfcfc"><b>X<br>
      </b> </td>
    </tr>
    <tr>
      <td bgcolor="#fcfcfc">Last Answer Append<br>
      </td>
      <td valign="top" bgcolor="#fcfcfc"><b>A<br>
      </b> </td>
    </tr>
  </tbody>
</table>
<ul>
</ul>
<h2>Constants</h2>
<table bgcolor="#dde2e5" border="0" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>ans</b></td>
      <td bgcolor="#fcfcfc">The last calculated result</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>PI</b></td>
      <td bgcolor="#fcfcfc">pi = 3.14159265...</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>E</b></td>
      <td bgcolor="#fcfcfc">e = 2.71828182...</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>LOG2E</b></td>
      <td bgcolor="#fcfcfc">log of e base 2</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>LOG10E</b></td>
      <td bgcolor="#fcfcfc">log of e base 10</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>LN2</b></td>
      <td bgcolor="#fcfcfc">log of 2 base e</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>LN10</b></td>
      <td bgcolor="#fcfcfc">log of 10 base e</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>SQRT2</b></td>
      <td bgcolor="#fcfcfc">square root of 2</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>SQRT1_2</b></td>
      <td bgcolor="#fcfcfc">square root of 1/2</td>
    </tr>
  </tbody>
</table>
<h2>Functions</h2>
<table bgcolor="#dde2e5" border="0" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>abs(a)</b></td>
      <td bgcolor="#fcfcfc">the absolute value of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>acos(a)</b></td>
      <td bgcolor="#fcfcfc">arc cosine of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>asin(a)</b></td>
      <td bgcolor="#fcfcfc">arc sine of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>atan(a)</b></td>
      <td bgcolor="#fcfcfc">arc tangent of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>atan2(a,b)</b></td>
      <td bgcolor="#fcfcfc">arc tangent of a/b</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>ceil(a)</b></td>
      <td bgcolor="#fcfcfc">integer closest to a and not less than a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>cos(a)</b></td>
      <td bgcolor="#fcfcfc">cosine of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>exp(a)</b></td>
      <td bgcolor="#fcfcfc">exponent of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>floor(a)</b></td>
      <td bgcolor="#fcfcfc">integer closest to and not greater than a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>log(a)</b></td>
      <td bgcolor="#fcfcfc">log of a base e</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>max(a,b)</b></td>
      <td bgcolor="#fcfcfc">the maximum of a and b</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>min(a,b)</b></td>
      <td bgcolor="#fcfcfc">the minimum of a and b</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>pow(a,b)</b></td>
      <td bgcolor="#fcfcfc">a to the power b</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>random()</b></td>
      <td bgcolor="#fcfcfc">pseudorandom number in the range 0 to 1</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>round(a)</b></td>
      <td bgcolor="#fcfcfc">integer closest to a </td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>sin(a)</b></td>
      <td bgcolor="#fcfcfc">sine of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>sqrt(a)</b></td>
      <td bgcolor="#fcfcfc">square root of a</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#fcfcfc"><b>tan(a)</b></td>
      <td bgcolor="#fcfcfc">tangent of a</td>
    </tr>
  </tbody>
</table>
<p>From - <a href="http://ostermiller.org/calc/calculator.html">Scientific
Calculator</a> by Stephen Ostermiller at <a
 href="http://ostermiller.org/">ostermiller.org</a><br>
</p>
<h3>Issues<br>
</h3>
<ul>
  <li>Calculator Cookie Memory needs to be fixed.<br>
  </li>
</ul>
</body>
</html>
